package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 类别对象 category
 * 
 * @author ruoyi
 * @date 2022-01-24
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long categoryId;

    /** 类别名字 */
    @Excel(name = "类别名字")
    private String categoryName;

    /** 类别描述 */
    @Excel(name = "类别描述")
    private String categoryDescription;

    /** 类别的父类别 */
    @Excel(name = "类别的父类别")
    private Long categoryParentId;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    /** 图标 */
    @Excel(name = "图标")
    private String icon;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setCategoryDescription(String categoryDescription) 
    {
        this.categoryDescription = categoryDescription;
    }

    public String getCategoryDescription() 
    {
        return categoryDescription;
    }
    public void setCategoryParentId(Long categoryParentId) 
    {
        this.categoryParentId = categoryParentId;
    }

    public Long getCategoryParentId() 
    {
        return categoryParentId;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("createTime", getCreateTime())
            .append("categoryName", getCategoryName())
            .append("categoryDescription", getCategoryDescription())
            .append("categoryParentId", getCategoryParentId())
            .append("isDelete", getIsDelete())
            .append("icon", getIcon())
            .toString();
    }
}
